package com.young.test.event;

import org.apache.log4j.Logger;

import org.springframework.context.ApplicationListener;

import com.young.test.event.BlackListEvent;


public class BlackListNotifier implements ApplicationListener<BlackListEvent> {
	/**
	 * Logger for this class
	 */
	private static final Logger logger = Logger.getLogger(BlackListNotifier.class);

	private String notificationAddress;

	public void setNotificationAddress(String notificationAddress) {
		this.notificationAddress = notificationAddress;
	}

	public void onApplicationEvent(BlackListEvent event) {
		logger.info("I recived the BlackListEvent. It address is :"+event.getAddress());
		
	}
	
	
}
